package com.itheima.d4_create_thread;

public class ThreadTest1Practice {
    public static void main(String[] args) {
        MyThread1 mt = new MyThread1();

        mt.start();

        for (int i = 0; i < 100; i++) {
            System.out.println("主线程：" + i);
        }
    }
}

class MyThread1 extends Thread {
    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println("子线程：" + i);
        }
    }
}